﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Entity
{
    public class rk_user
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }
        /// <summary>
        /// 登录名
        /// </summary>
        public string login_name { get; set; }
        /// <summary>
        /// 昵称 
        /// </summary>
        public string u_name { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string login_pwd { get; set; }
        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime addtime { get; set; }
        /// <summary>
        ///工作微信名
        /// </summary>
        public string wx_name { get; set; }
        /// <summary>
        /// 微信绑定手机号
        /// </summary>
        public string wx_tel { get; set; }
        //// <summary>
        /// 微信号
        /// </summary>
        public string wx_no { get; set; }
        /// <summary>
        /// 绑定的openid
        /// </summary>
        public string bindOpenid { get; set; }
        /// <summary>
        ///  
        /// </summary>
        public string bindUnionid { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string link_phone { get; set; }
        //角色ID
        public string role_id { get; set; }
        /// <summary>
        /// 部门ID
        /// </summary>
        public string dep_id { get; set; }

        public bool isuse { get; set; }

        public DateTime lastLoginTime { get; set; }

        public string lastLoginIP { get; set; }

        public string headimg { get; set; }
    }

    public class rk_user_search: rk_user
    { 
        public string role_name { get; set; }
    }
    public class WxLoginParams
    {
        /// <summary>
        /// 用户登录WxLoginParams
        /// </summary>
        public string openid { get; set; }
 
    }
    public class LoginParams
    {
        /// <summary>
        /// 用户登录账号
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string pwd { get; set; }
        ///// <summary>
        ///// 获取验证图片时返回的token
        ///// </summary>
        //public string CheckToken { get; set; }
        ///// <summary>
        ///// 验证码对应的数字信息
        ///// </summary>
        //public string code { get; set; }
    }


    public class rk_user_params
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }
        /// <summary>
        ///  登录名称
        /// </summary>
        public string login_name { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string u_name { get; set; }
        /// <summary>
        /// 登录密码
        /// </summary>
        public string login_pwd { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        public string link_phone { get; set; }
        /// <summary>
        /// 角色ID
        /// </summary>
        public string role_id { get; set; }
        /// <summary>
        /// 微信名
        /// </summary>
        public string wx_name { get; set; }
        /// <summary>
        /// 微信电话
        /// </summary>
        public string wx_tel { get; set; }
        /// <summary>
        /// 微信号
        /// </summary>
        public string wx_no { get; set; }
        /// <summary>
        /// 是否使用
        /// </summary>
        public bool isuse { get; set; }
        public DateTime addtime { get { return DateTime.Now; } }

    }
}
